<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    <%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <%@ include file="top_new.jsp"%> 
    <link rel="stylesheet" href="/css/contributions.css">
    <link rel="stylesheet" type="text/css" href="/dist/wangE/css/wangEditor.css">
     <link rel="stylesheet" href="/common/bootstrap/css/bootstrap.css"/>	
</head>

<body >
<div style="width: 100%">
</div>
<!-- /头部区域 -->
<!-- 投稿区 -->
<section id="gz-tg">
    <div class="container">
    	<input type="hidden" name="fid" id="fid" value="${tgrid.fid}">
        <div class="gz-top-wrap">
            <div class="gz-top-info">
                <a href="#" class="gz-top-info-promote">文章编辑</a>
            </div>
        </div>
        <div class="gz-left-wrap">
            <div class="gz-info-box">
                <div class="layui-input-inline" style="width:99%;float : left;margin : 5px;">
               	 <input type="text"  name="ftitle" id="ftitle" required  lay-verify="required" placeholder="这里请输入标题(1-20个字)" autocomplete="off" class="layui-input" value="${tgrid.ftitle}">
                </div>
              
                <div  style="width:99%;float : left;margin : 5px;">
               	 <input type="text"  name="fdescribe" id = "fdescribe" required  lay-verify="required" placeholder="这里请输入描述(1-20个字)" autocomplete="off" class="layui-input" value="${tgrid.fdescribe}">
                </div>
                
                <div  style="width:99%;float : left;margin : 5px;">
               	 <input type="text"  name="ffrom" id = "ffrom" required  lay-verify="required" placeholder="这里请输入来源作者(1-20个字)" autocomplete="off" class="layui-input" value="${tgrid.ffrom}">
                </div>
               
               <div style="margin: 5px;" >
                  <select class="form-control" id = "ftype">
			         <c:forEach items="${tdicinfo }" var="dic">
							<option value="${dic.fode}" <c:if test="${tgrid.ftype eq dic.fode}">selected="selected"</c:if>>${dic.fvalue}</option>
						</c:forEach>
			   	    </select>
	            </div>
		      
        
                 <div id =div_wangEditor_tw class="test_box" contenteditable="true" >
                 ${tgrid.fhtml}
				</div>

            <div class="gz-btn-group">
                <button class="btn btn-publish transition" onclick="openGird(0)">保存预览</button>
                <button class="btn btn-border transition" onclick="openGird(1)">审核关闭</button>
            </div>
        </div>
        <div class="gz-right-wrap">
            <h5>上传图片</h5>
            <div class="article-pic-box" >
            	<label class="box-label" id="div_upload_img" >
                   	 图片
                   <i class='layui-icon'>&#xe64a;</i>
                </label>
                <input type="file" name="image" id="imageFile" style="display:none" onchange="upload(this);">
                <div id="upload-pic">
                    <ul id = "ul_img">
                    	 
                    </ul>
                </div>
            </div>
        </div>

    </div>
</section>
<!-- /投稿区 -->
<script type="text/javascript" src="/js/sonic.js"></script>
<script type="text/javascript" src="/dist/wangE/js/wangEditor.min.js"></script>
<script type="text/javascript" src="/js/grid.js"></script>
<script type="text/javascript" src="/js/ajaxfileupload.js"></script>
<script type="text/javascript" src="/js/upload.js"></script>
</body>
<script type="text/javascript">
var basePath = '<%=basePath %>';
$(document).ready(function() {
	$('#div_upload_img').click(function() {
		$('#imageFile').click();
	});
	
});
</script>
</html>
